import request from "../../utils/request";

/**
 * 登录
 * @param phone 用户名
 * @param password 密码
 */
export const loginApi = ({ phone, password }) => {
  return request.post("app-dev/login", {
    params: {
      phone,
      password,
    },
  });
};

/**
 * 用户信息
 * @param phone 用户名
 * @param password 密码
 */
 export const userApi = ({ phone, password }) => {
  return request.get("app-dev/userInfo", {
    params: {
      phone,
      password,
    },
  });
};
